function  closestNode = getClosestNode1(receiver, node, neighborsS, disp_loc)      
             
            
      %   The distance between all the source neighborhoods' nodes and the destination nodes.            
            [DBSND]= distanceBetweenSourceAndNeighbors(receiver,neighborsS,disp_loc);
            [sortingNodes] = sortNodesAscending(DBSND, neighborsS);
            counter = 1;
            closestNode = sortingNodes(counter);
            if closestNode == node
               counter = counter + 1;
               closestNode = sortingNodes(counter);
            end
            
           
end
          